package com.gouda.employee.api.exception;

/**
 * Created with IntelliJ IDEA.
 * User: souu
 * Date: 15-3-26
 * Time: 下午4:28
 * To change this template use File | Settings | File Templates.
 */
public class RequestException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private ErrorCode ec;

    private String message;

    public RequestException(ErrorCode ec) {
        this.ec = ec;
    }

    public ErrorCode getEc() {
        return ec;
    }

    public void setEc(ErrorCode ec) {
        this.ec = ec;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
